package top.lishuoboy.spring.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration      // @Component 一样
public class MyConfiguration {
    @Bean
    String string() {
        return "我的字符串";
    }
}